package com.ruge.spring.cloud.gateway.base.exception;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;

/**
 * @author 嘿丷如歌
 * @version V1.0
 * @Description: 钛马异常类
 * @date 2021/4/26 20:01
 */
@Configuration
@ConfigurationProperties("tima.exception")
public class TimaExceptionProperties {
    private Boot boot = new Boot();

    public Boot getBoot() {
        return boot;
    }

    public void setBoot(Boot boot) {
        this.boot = boot;
    }

    public static class Boot {
        private String defaultContentType = MediaType.APPLICATION_JSON_UTF8_VALUE;

        public String getDefaultContentType() {
            return defaultContentType;
        }

        public void setDefaultContentType(String defaultContentType) {
            this.defaultContentType = defaultContentType;
        }
    }
}

